package com.dji.common.utils;

import java.io.File;

public class SystemUtils {
	private static String systemPath;
	private static String classPath;
	static {
		systemPath = System.getProperty("user.dir").replace(File.separator, File.separator);
		if (!systemPath.endsWith(File.separator)) {
			systemPath = systemPath + File.separator;
		}
		classPath = SystemUtils.class.getResource("/").toString().replace("file:/", "").replace("/",
				File.separator);
		if (!classPath.endsWith(File.separator)) {
			classPath = classPath + File.separator;
		}
	}

	public static String getProjectPath() {
		return systemPath;
	}

	public static String getClassPath() {
		return classPath;
	}

	public static void main(String[] args) throws Exception {

		System.out.println(SystemUtils.getClassPath());
	}
}
